import http from "@/utils";
export const login = (data) => {
  return http.post(`/v1/login`, { ...data });
};
export const imageUpload = (data) => {
  return http.post(
    `/v1/dy_share/admin/image/upload`,
    { ...data }
  );
};
export const videoUpload = (data) => {
  return http.post(
    `/v1/dy_share/admin/video/upload`,
    { ...data }
  );
};
export const fileList = (data) => {
  return http.post(
    `/v1/dy_share/admin/file/list`,
    { ...data }
  );
};

export const fileUserList = (data) => {
  return http.post(
    `/v1/dy_share/user/file/list`,
    { ...data }
  );
};

export const qr_code = (data) => {
  return http.post(
    `/v1/dy_share/file/qr_code`,
    { ...data }
  );
};